<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/layout/dialogLayout.xhtml">  
	<ui:param name="param_pageTitle" value="#{messages.crud_btn_add}" />
    <ui:param name="param_panelWidth" value="500px"/>	
    <ui:param name="id" value="add" />
	<ui:define name="content">
		<h:form>
			<rg:titlePanel type="writable" needButton="true" headerTitle="修改分组">
				<rg:fieldSet>
					<rg:inputText id="partyGroupName"  required="true"  label="分组名称" value="#{partyGroupAction.partyGroup.partyGroupName}" />
					<rg:selectOne id="parentGroup" label="上级分组" value="#{partyGroupAction.partyGroup.parentGroup}" 
						enableEmpty="true"
						converter="#{partyGroupConverter}" itemsProvider="#{partyGroupProvider}"/>
					<rg:inputArea id="desc" required="true" label="分组描述" value="#{partyGroupAction.partyGroup.desc}" />
				</rg:fieldSet>
			
				<ui:define name="panelButton">
	                <a:commandButton styleClass="button"
	                    value="#{messages.btn_complete}" onclick="UI.instance.showMask()"
	                    oncomplete="UI.instance.reRender('reRenderPartyGroupTable');"
	                    action="#{partyGroupAction.updatePartyGroup()}"
	                    reRender="#{id}Scripts,globalMessage" />
	                <input type="button" class="button" value="#{messages.btn_cancel}"
	                    onclick="javascript:DialogLayout.instance.close();" />
	            </ui:define>
			</rg:titlePanel>
		</h:form>
	</ui:define>
</ui:composition>